<extend name="layout/main" />

<block name="HEADER">

</block>

<block name="CONTENT">
	<control:grid id="grid" padding="0" height="100%" />
</block>

<block name="FOOTER">
	<script type="text/javascript">
		var page = (function(ns){
     
		    //页面初始化
		    ns.init=function(){

		    }
		    
		    //查看商品
		    ns.seeGoodas =function(goods_id){
		    	var selectedRow = grid.getSelectedRows()[0];
		        var filter = {
		            url: "/modules/goods/goodsList/edit",
		            oid: goods_id,
		            mode: 3,
		        }
		        $.openIframe(filter, "编辑",['950px', '92%']);
		    }
		    
		    //商家信息
		    ns.seeShop = function(shop_id){
		        var filter = {
		            url:"modules/shop/list/edit",
		            oid: shop_id,
		            mode:3
		        }
		        $.openIframe(filter,"商家信息",['800px', '550px']);
		    }
		    
		    return ns;
		}({}));
		
		$(function(){ page.init();  });
	</script>
</block>